package itheima.zuoye.test6;

public class SUV extends  Auto {
    static  int small = 4259;
    static  int middile = 5070;

    public SUV() {
    }

    public SUV(String brand, int length, double price) {
        super(brand, length, price);
    }

    public String getType() {
        int length = super.getLength();
        if (length < small) {
            return "小型SUV";
        } else if (length > middile) {
            return "大型SUV";
        } else {
            return "中型SUV";
        }
    }
}

